# accounts/urls.py

from django.urls import path
from .views import UploadImageView
from .views import RegisterView, LoginView, CreateBlogView, BlogListView, BlogDetailView

urlpatterns = [
    path('register/', RegisterView.as_view(), name='register'),
    path('login/', LoginView.as_view(), name='login'),
    path('blog/', CreateBlogView.as_view(), name='create_blog'),
    path('blogs/', BlogListView.as_view(), name='blog_list'),
    path('blog/<int:blog_id>/', BlogDetailView.as_view(), name='blog_detail'),
    path('upload-image/', UploadImageView.as_view(), name='upload_image'),
]